<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>学生修改页面</title>
    <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<form action="stuServlet" method="post" enctype="multipart/form-data">
    <input type="hidden" name="mark" value="updateStudentDo">
    <input type="hidden" name="sid" value="${stu.id}"/>
    姓名:<input type="text" name="sname" value="${stu.sname}" readonly/><br/><br/>
        性别:男<input type="radio" value="男" name="gender" <c:if test="${stu.gender == '男'}"> checked="checked"</c:if>  />
        女<input type="radio" value="女" name="gender" <c:if test="${stu.gender == '女'}"> checked="checked"</c:if>/><br/><br/>

    生日:<input class="Wdate" name="sbirth" type="text" value="${stu.birthday}" onclick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd'})"><br/><br/>
    爱好:
    抽烟<input type="checkbox" value="抽烟" name="hobby" <c:if test="${stu.hobby == '抽烟'}"> checked</c:if>/>
    喝酒<input type="checkbox" value="喝酒" name="hobby" <c:if test="${stu.hobby == '喝酒'}"> checked</c:if>/>
    rap<input type="checkbox" value="rap" name="hobby" <c:if test="${stu.hobby == 'rap'}"> checked</c:if>/>
    烫头<input type="checkbox" value="烫头" name="hobby" <c:if test="${stu.hobby == '烫头'}"> checked</c:if>/><br/><br/>
    头像:<input type="file" name="file"><br/><br/>
    <input type="hidden" name="file" value="${stu.photo}">
    <input type="submit" value="修改">
</form>
</body>
</html>